<div class="panel-default">
  <table lay-filter="demo" lay-size='lg'>
    <thead>
      <tr>
        
        <th lay-data="{field:'title'}"><%= FrequentAsk.human_attribute_name(:title) %></th>
        
        <th lay-data="{field:'content'}"><%= FrequentAsk.human_attribute_name(:content) %></th>
        
        <th lay-data="{field:'admin_user_id'}"><%= FrequentAsk.human_attribute_name(:admin_user_id) %></th>
        
        <th lay-data="{field:'company_id'}"><%= FrequentAsk.human_attribute_name(:company_id) %></th>
        
        <th lay-data="{field:'operation',width:200}"></th>
      </tr>
    </thead>

    <tbody>
      <% @frequent_asks.each do |frequent_ask| %>
        <tr>
          
          <td><%= frequent_ask.title %></td>
          
          <td><%= frequent_ask.content %></td>
          
          <td><%= frequent_ask.admin_user_id %></td>
          
          <td><%= frequent_ask.company_id %></td>
          
          <td>
            <%= link_to [:admin, frequent_ask], class: "label label-primary" do -%><i class="iconfont icon-chakan"></i>查看<% end %>
            <%= link_to edit_admin_frequent_ask_path(frequent_ask), class: "label" do -%><i class="iconfont icon-bianji"></i>编辑<% end %>
            <%= link_to [:admin, frequent_ask], method: :delete, data: { confirm: '确定删除吗? 注意此操作无法撤销！' }, class: "label label-danger" do -%><i class="iconfont icon-shanchu"></i>删除<% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%= link_to new_admin_frequent_ask_path do -%><button type="button" class="layui-btn"><i class="layui-icon">&#xe608;</i> <%= t('actions.new') + FrequentAsk.model_name.human %></button><% end %>
</div>



